<?php
/*
+--------------------------------------------------------------------------
|   WeCenter [#免费开发#]
|   ========================================
|   by Jerry
|   http://www.5ihelp.com
|   ========================================
|   如果有兴趣可以加群{开发交流群} 485114585
|   ========================================
|   更改插件记得先备份，先备份，先备份，先备份
|   ========================================
+---------------------------------------------------------------------------
 */
namespace app\ajax\controller;
use app\ajax\model\User as askuser;
use app\ajax\model\Base as basemodel;
use think\Controller;
use think\Request;
use think\Session;
use think\Cookie;
class Setting extends Controller
{
    protected $request;
    public function _initialize()
    {
        $this->request = Request::instance();
       
    }
     public function saveconfig(){
     	if($this->request->isAJax()){

			foreach ($this->request->param() as $key => $v) {
				 model('Setting')->saveconf($key,['value'=>serialize($v)]);
			}
			$this->success(lang('update_success'),'');
     	}
     	


 	 }

}
